<?php

namespace app\server\model;

use app\server\inter\CommandStrategy;

class ControlCommand
{
    protected $_strategy;


    public function run()
    {
        return $this->_strategy->send();
    }

    /**
     * 设置当前策略
     *
     * @param CommandStrategy $strategy
     */
    public function setStrategy(CommandStrategy $strategy)
    {
        $this->_strategy = $strategy;
    }

}